﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication2
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack == null)
            {
                Response.Write("<h1>登录成功！</h1>");

                string username = Request.QueryString["TextBox1"];
                string password = Request.QueryString["TextBox2"];

                Response.Write("get欢迎你，" + username + ",你的密码是：" + password);



            }
            else
            {
                Response.Write("<h1>登录成功！</h1>");

                string nameParams = Request.Params["TextBox1"];
                string passwordParams = Request.Params["TextBox2"];

                Response.Write("post欢迎你，" + nameParams + ",你的密码是：" + passwordParams);
            }
        
        }
    }
}